function magicFunc(foo: any) {
    if (typeof foo === 'string') {
        foo.toUpperCase();
    } else if (typeof foo === 'number') {
        foo.toFixed(2)
    } else if (typeof foo === 'bigint') { 
        foo + 1n
    } else if (typeof foo === 'boolean') {
        foo === false
    } else if (typeof foo === 'symbol') {
        foo === Symbol()
    } else if (typeof foo === 'undefined') {
        foo === undefined
    } else if (typeof foo === 'object') {
        JSON.stringify(foo)
    } else if (typeof foo === 'function') {
        foo()
    }
}